<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="dao.CommDAO"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>公告详情</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<STYLE type=text/css>
BODY {
	FONT-FAMILY: 宋体; COLOR: #011f77; FONT-SIZE: 13px
}
TD {
	FONT-FAMILY: 宋体; COLOR: #011f77; FONT-SIZE: 13px
}
TH {
	FONT-FAMILY: 宋体; COLOR: #011f77; FONT-SIZE: 13px
}
BODY {
	BACKGROUND-COLOR: #ffffff; MARGIN: 0px
}
</STYLE>

<SCRIPT language=JavaScript src="1_files/swf.js"></SCRIPT>
<LINK rel=stylesheet type=text/css href="1_files/gg.css">
<SCRIPT language=JavaScript type=text/JavaScript>
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  window.open(selObj.options[selObj.selectedIndex].value);
  if (restore) selObj.selectedIndex=0;
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</SCRIPT>

<SCRIPT language=JavaScript src=""></SCRIPT>

<META name=GENERATOR content="MSHTML 8.00.7601.17720">
<style type="text/css">
<!--
.STYLE1 {
	color: #FFFFFF;
	font-weight: bold;
}
-->
</style>
  </head>
  
 
   <SCRIPT language=JavaScript>
function rearchs(){

  if (fromss.typeid.value==""){
  
    alert("请选择类别!");
	return false;
  
  }

}


</SCRIPT>
  
  <%CommDAO dao = new  CommDAO(); %>
  <body>
  <jsp:include page="head.jsp"></jsp:include>
<TABLE border=0 cellSpacing=0 cellPadding=0 width=1004 align=center>
  <TBODY>
  <TR>
    <TD class=bk1 vAlign=top align=middle>
      <TABLE border=0 cellSpacing=0 cellPadding=0 width=968 align=center>
        <TBODY>
        <TR>
          <TD bgColor=#edfaff vAlign=top width=220 align=left>
            <TABLE border=0 cellSpacing=0 cellPadding=0 width=220>
              <TBODY>
              <TR>
                <TD height=6></TD></TR>
              <TR>
                <TD vAlign=top align=middle>
                  
            <TABLE border=0 cellSpacing=0 cellPadding=0 width=220>
              <TBODY>
              <TR>
                <TD height=33 vAlign=top background=1_files/gg1.gif 
                align=left>&nbsp;</TD></TR>
              <TR>
                <TD vAlign=center background=1_files/gg2.gif align=middle>
                  <TABLE border=0 cellSpacing=0 cellPadding=0 width="89%">
                    <TBODY>
                    <TR>
                      <TD vAlign=top align=middle>
                        <TABLE border=0 cellSpacing=0 cellPadding=0 width="90%" 
                        background=1_files/eca_gov_cn.htm>
                          <TBODY>
                          <TR>
                            <TD vAlign=center align=right>
                              <TABLE class=blue13 border=0 width=181>
                                <TBODY>
                                <TR>
                                <TD vAlign=center width=175 align=middle>
                                <DIV align=center></DIV>
                                <DIV 
                                style="WIDTH: 191px; HEIGHT: 140px; OVERFLOW: hidden" 
                                id=demo>
                                <DIV id=demo1>
                                
                                
                                
                                
                               <%
                               
                               String noticesql = "select * from notice order by id desc"; 
                               	ArrayList<HashMap> noticelist = (ArrayList)dao.select(noticesql);
                               	if(noticelist.size()!=0){
                               		for(HashMap noticem :noticelist){%>
                               		
                               		<TABLE border=0 cellSpacing=0 cellPadding=0 
                                width="100%">
                                <TBODY>
                                <TR>
                                <TD class=blackhui vAlign=top align=left><SPAN 
                                class=green13>·</SPAN><A class=blue13 
                                href="list.jsp?t=1"><%=noticem.get("title") %></A><br/><%=noticem.get("savetime") %></TD></TR>
                                <TR>
                                <TD class=blue21 height=10 vAlign=top 
                                align=left></TD></TR></TBODY></TABLE>
                               		
                             <%}	}%>
                             
                             
                             

                           		</DIV>
                                <DIV id=demo2></DIV></DIV>
                                <SCRIPT>
var speed=40
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetTop-demo.scrollTop<=0)
demo.scrollTop-=demo1.offsetHeight
else{
demo.scrollTop++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
                        </SCRIPT>
                                </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
                    <TR>
                      <TD height=31 vAlign=center align=right><A 
                        href="list.jsp?t=1"><IMG 
                        border=0 src="1_files/more.gif" width=63 
                      height=23></A></TD></TR></TBODY></TABLE></TD></TR>
              <TR>
                <TD bgColor=#a1e1fc height=1></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
          <TD vAlign=top align=right>
            <TABLE border=0 cellSpacing=0 cellPadding=0 width=198>
              <TBODY>
              <TR>
                <TD height=6></TD></TR></TBODY></TABLE>
           <TABLE border=0 cellSpacing=1 cellPadding=0 width=741 
            bgColor=#c8f3fc>
              <TBODY>
              <TR>
                <TD bgColor=#ffffff height=245 vAlign=top align=left>
								<%
								String id = request.getParameter("id");
								String s = "select * from notice where id="+id;
								HashMap m = dao.select(s).get(0);
								%>
								
								
								<table align="center" width="100%">
									<th ><%=m.get("title") %></th>
									<tr>
										<td align="center"><%=m.get("savetime") %></td>
									</tr>
									<tr>
										<td align="center"><%=m.get("content") %></td>
									</tr>
								</table>

				</TD>
              </TR>
              <TR>
                <TD height=16 
      colSpan=2></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD height=13 colSpan=2></TD></TR></TBODY></TABLE>
      <jsp:include page="foot.jsp"></jsp:include>
  </body>
</html>
